package my.avoskagae.server;

import my.avoskagae.model.buslogic.MaintenanceProductCatalog;
import my.avoskagae.model.buslogic.MaintenanceProductCatalogImpl;
import my.avoskagae.service.rpc.server.AvoskaServiceRPCImpl;
import my.avoskagae.store.abstr.StoreAdapter;
import my.avoskagae.store.gaejdo.JDOStoreAdapterImpl;

import com.google.inject.servlet.ServletModule;

public class AvoskaGuiceModule extends ServletModule{
	
	@Override
	protected void configureServlets() {
		serve("/avoskagae/avoskaServiceRPC").with(AvoskaServiceRPCImpl.class);
		bind(MaintenanceProductCatalog.class).to(MaintenanceProductCatalogImpl.class);
		//Virtual
//		bind(StoreAdapter.class).to(VirtualStoreAdapterImpl.class);
		//JDO
		bind(StoreAdapter.class).to(JDOStoreAdapterImpl.class);
		
	}

}
